import { SuggestionResponse } from '@/types/data'
import request from '@/utils/request'

type params = {
  q: string
}

/**
 * 根据输入的关键词获取联想词列表
 * @param params 
 */
export const getSuggestion = (params: params): Promise<SuggestionResponse> => {
  return request.get('/suggestion', {
    params
  })
}

